package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pro.vo.WorkflowProcessRelation;
import com.qidianit.mes.pro.vo.WorkflowProductCategory;
import com.qidianit.mes.pro.vo.WorkflowProductRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/19 - 16:31
 */
public interface WorkFlowProductService {
    PageInfo<WorkflowProductRelation> queryProductsByProcessCodeAndPageInteger(Integer page,
                                                                               Integer size,
                                                                               Integer workflowId);

    int addWorkFlowProductRelation(WorkflowProductRelation workflowProductRelation);

    WorkflowProductCategory queryWorkflowAndProductsAndCategoryById(Integer id);

    int updateWorkFlowProductRelation(WorkflowProductRelation workflowProductRelation);

    /*
    根据工序关联产品编号删除工序关联产品信息
     */
    int deleteWorkFlowProductRelationById(Integer id);
    /*
    批量删除工序关联产品
     */
    int deleteWorkFlowProductRelationByIds(@Param("id") List<Integer> ids);
}
